<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page.aspx.cs" Inherits="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    
    <style type="text/css">
    #target
    {
        border:2px solid #0a0;
        display:block;
        width:300px;
        height:100px;
    }
    </style>
	<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>	
	<script type="text/javascript" src="Handlers/DNJRPC.ashx?conf=jsonmap.js"></script>
	<script>   
    function showResult(data)
    {
        $('#target').html('result : ' + data.result + ' ; errors : '+data.error + ' ; id : '+data.id);
    }
    
     $(document).ready(function(){

        //var eurecaObj = $.DNJRPC({success:showResult});
        //var AppCode = eurecaObj.App_Code.includes;
       $('#Button1').live('click', function(){
           dnj.App_Code.includes.SayHello();
       });
       $('#Button2').live('click', function(){            
            dnj$({success:showResult}).App_Code.includes.Say($('#va').val());
            
       });
       $('#Button3').live('click', function(){
            dnj$('#result').App_Code.includes.Add($('#va').val(), $('#vb').val());
       });
       $('#Button4').live('click', function(){
            dnj.package.BLProcess();
       });
    
                   
     });
    

	</script>    
</head>
<body>
    <form id="form1" runat="server">
    <p>Call BLProcess() from external dll (process.dll)</p>

<input id="Button4" type="button" value="BLProcess"/>
    <br />
    <br />
    Call SayHello() from App_Code<br />
<input id="Button1" type="button" value="SayHello"/>
    <br />
    <br />
    Call Say(string something) from App_Code<br />
    <input id="str" type="text" value="EUReCa!!" /><input id="Button2" type="button" value="Say"/>
    <br />
    <br />
    Call Add(int a, int b)&nbsp; or Add(float a, float b) depending on entered parameters
    from App_Code<br />
    <input id="va" style="width: 27px" type="text" value="5" />
    +
    <input id="vb" style="width: 31px" type="text" value="56" />
    <input id="Button3" type="button" value="Add"/>
    <input id="result" style="width: 60px" type="text" value="" />
        <br />
    <br />
        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">LinkButton</asp:LinkButton><br />
    <br />

    <b>Target for all remote calls</b>
    <div id="target"></div>    
        <asp:Button ID="jqBtn" runat="server" Text="Button" OnClick="jqBtn_Click" /><br />
        <br />
        <br />
        &nbsp;<asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="Button" />
        
    <asp:Panel ID="Panel1" runat="server" CssClass="jqPanel" Height="50px" Width="125px">
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        &nbsp;
    </asp:Panel>        
    
        <asp:Panel ID="Panel2" runat="server" Height="50px" Width="125px" CssClass="jqPanel">
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></asp:Panel>
    
        </form>

</body>
</html>
